package com.shntec.xtask.impl;

import com.shntec.bp.common.BaseSQLHelper;
import com.shntec.bp.util.DatabaseManager;

public class XtaskShntecSQLHelper extends BaseSQLHelper{
	
	public XtaskShntecSQLHelper() {
		super.conn = DatabaseManager.getInstance().getConnection();
	}

	public XtaskShntecSQLHelper(boolean autoCommit) {
		super.conn = DatabaseManager.getInstance().getConnection();
		setAutoCommit(autoCommit);
	}

	@Override
	public void close() {
		DatabaseManager.getInstance().releaseConnection(conn);
	}
	
}